﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using helper;

namespace RabbitMQ.WindowsService
{
    public partial class Service1 : ServiceBase
    {
        public Service1()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            LoggerHelper.Log("消息对列业务处理服务启动");
            Task.Run(() =>
            {
                new Hander().HanderStart();
            });
        }

        protected override void OnStop()
        {
            LoggerHelper.Log("消息对列业务处理服务停止");
        }
    }
}
